
#ifndef APP_TEMP_PRE 
#define APP_TEMP_PRE 


#ifdef  APP_TEMP_MOD
#define APP_TEMP_EXT
#else
#define APP_TEMP_EXT extern
#endif

#include "bsp_adc.h"


#define APP_TEMP_CHANNEL_NUM   2

typedef struct
{
	tADC *adc;
	osThreadId thread_id;
	uint16_t adc_data[APP_TEMP_CHANNEL_NUM];
	float voltage[APP_TEMP_CHANNEL_NUM];
	float current[APP_TEMP_CHANNEL_NUM];
	float resistance[APP_TEMP_CHANNEL_NUM];
	float temp[APP_TEMP_CHANNEL_NUM];
}tTEMP;








APP_TEMP_EXT tTEMP app_temp;

APP_TEMP_EXT void app_temp_init(void);
APP_TEMP_EXT void app_temp_task(void const * argument);









#endif
